#include"client.hpp"

static void Usage(string proc)
{
    cout<<"\nUsage:\n\t"<<proc<<" server_ip server_port\n\t";
}

int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        Usage(argv[0]);
        exit(1);
    }

    string serverip = argv[1];
    uint16_t serverport = atoi(argv[2]);

    unique_ptr<client> ucli(new client(serverip,serverport));
    ucli->initClient();
    ucli->run();
    
    return 0;
}